package paramter;

public class Cook {
	
	//                (参数列表)
	public void cookFood (String name) {  // 参数可以接收调用方法的时候传递来的值
		System.out.println("1.买" + name);
		System.out.println("2.洗" + name);
		System.out.println("3.切" + name);
		System.out.println("4.起锅烧油");
		System.out.println("5.放入" + name);
		System.out.println("6.翻炒");
		System.out.println("7.出锅");
	}
	
	public static void main(String[] args) {
		Cook c = new Cook();
		System.out.println("--------------------");
		c.cookFood("白菜");
		System.out.println("--------------------");
		c.cookFood("大头菜");
		System.out.println("--------------------");
		c.cookFood("护心肉");
	}
}
